package lab02.test12;

/**
 * Created by 123 on 2017/10/19.
 */
public class Rectangular extends Shape {

    int length;
    int width;


    @Override
    void area() {
        int area = this.length * this.width;
        System.out.println("面积为："+area);

    }

    @Override
    void perimeter() {
        int perimeter = 2 * (this.width + this.length);
        System.out.println("周长为："+perimeter);

    }
}
